import request from '@/utils/request'

// 查询投资动态列表
export function listGpInvestEvent(query) {
  return request({
    url: '/gp/gpInvestEvent/list',
    method: 'get',
    params: query
  })
}

// 查询投资动 态详细
export function getGpInvestEvent(id) {
  return request({
    url: '/gp/gpInvestEvent/' + id,
    method: 'get'
  })
}

// 保存投资动态
export function saveGpInvestEvent(data) {
  return request({
    url: '/gp/gpInvestEvent/save',
    method: 'post',
    data: data
  })
}

// 删除投资动态
export function delGpInvestEvent(id) {
  return request({
    url: '/gp/gpInvestEvent/' + id,
    method: 'delete'
  })
}

// 导出投资动态
export function exportGpInvestEvent(query) {
  return request({
    url: '/gp/gpInvestEvent/export',
    method: 'get',
    params: query
  })
}

// // 用户头像上传
export function uploadAvatar(data) {
  return request({
    url: '/gp/gpInvestEvent/avatar',
    method: 'post',
    data: data
  })
}
